﻿using Forum.BaseController;
using Forum.Service.Interface.NoAuth;

namespace Forum.JobController
{
    [Route("JobApi/Notice")]
    public class NoticeController : JobBaseController<INoticeService>
    {
        public NoticeController(INoticeService defaultService, ILogger<JobBaseController<INoticeService>> logger) : base(defaultService, logger)
        {
        }

        [HttpPost]
        public ApiResponse CreateNotice()
        {
            DefaultService.PublishNotice();
            return ApiResponse.OK();
        }
    }
}
